<template>
  <div id="reselectPopup">
    <van-popup class="repopup"
               @click-overlay="close_popup"
               v-model="show">
      <div class="title fz3">挑选其他表现师？</div>
      <div class="content fz4">您选择的表现师没有确认订单，系统将为您推荐其他优秀表现师，您可选择其中一位为您服务。</div>
      <div class="bot flex">
        <div class="closeBtn fz3"
             @click="close_popup">取消</div>
        <div class="sureBtn wordsprimary fz3" @click="go_reselect">确认</div>
      </div>
    </van-popup>
  </div>
</template>
<script>
export default {
  props: ["showPopup",'orderUid'],
  data() {
    return {
      show: false
    };
  },
  watch: {
    showPopup() {
      this.show = this.showPopup;
    }
  },
  methods: {
    close_popup() {
      this.$emit("close_popup");
    },
    go_reselect(){
      // console.log(this.orderUid)
      this.$router.push({name:'designer-reselectPerformance',params:{uid:this.orderUid}})
    }
  }
};
</script>
<style lang="scss" scoped>
#reselectPopup {
  .repopup {
    width: 80%;

    border-radius: 5px;
    .title {
      margin-top: 0.24rem;
      font-weight: bold;
      text-align: center;
      margin-bottom: 0.15rem;
    }
    .content {
      padding: 0.24rem;
      text-align: center;
      color: #9b9b9b;
      border-bottom: 1px solid #e5e5e5;
    }
    .bot {
      height: 1rem;
      line-height: 1rem;
      .closeBtn {
        color: #000000;
        width: 50%;
        text-align: center;
        border-right: 1px solid #e5e5e5;
      }
      .sureBtn {
        width: 50%;
        text-align: center;
      }
    }
  }
}
</style>
